Skip to content

RFC: Synchronizing Virtualizer Visible Rect After Programmatic Collection Scrolling#10309

Open
000vincent999 wants to merge 1 commit into
adobe:mainfrom
000vincent999:rfc-virtualizer-visible-rect-refresh
Open

RFC: Synchronizing Virtualizer Visible Rect After Programmatic Collection Scrolling#10309
000vincent999 wants to merge 1 commit into
adobe:mainfrom
000vincent999:rfc-virtualizer-visible-rect-refresh

Conversation

@000vincent999

Copy link
Copy Markdown

This RFC proposes an internal mechanism for virtualized collection components to refresh the virtualizer visible rect after programmatic scrolling caused by keyboard focus movement.

Related:

Co-Authored-By: Claude <noreply@anthropic.com>

The existing area-based guard can be fooled by cross-axis overscan. For example, a vertical list can have an overscanned requested rect whose area appears larger than the content area even though the requested rect has not actually covered the newly appended item. In that case, a newly focused persisted key exists in the collection but does not have layout info.

The proposed condition is to compute the full layout when the key is missing from `layoutNodes` but exists in the current collection:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems bad and expensive, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants